import axios from '../axios'

/* 
 * 汽车配件信息管理模块
 */

// 入库
export const inbound = (data) => {
    console.log("inbound")
    return axios({
        url: '/inventory/in',
        method: 'post',
        data
    })
}

// 出库
export const outbound = (data) => {
    return axios({
        url: '/inventory/out',
        method: 'post',
        data
    })
}

// 出库
export const staticinfo = (data) => {
    return axios({
        url: '/inventory/staticinfo',
        method: 'get',
    })
}


// 删除
export const batchDelete = (data) => {
    return axios({
        url: '/inventory/del',
        method: 'post',
        data
    })
}

// 分页
export const findPage = (params) => {
    console.log(params);
    console.log("http.modules.findPage")
    return axios({
        url: '/inventory/findPage',
        method: 'get',
        params
    })
}
